package com.xf.spring.list;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {

	public static void main(String[] args) {
		ApplicationContext ct = new ClassPathXmlApplicationContext("xmls/sp1.xml");
		//NewPerson n = (NewPerson) ct.getBean("person1");
		//DataSource d=(DataSource) ct.getBean("datasource");
		NewPerson n = (NewPerson) ct.getBean("person3");
		System.out.println(n);
	}

}
